home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / php / pear / docs / bz2 / .tmpphp_bz2.h < prev   
C/C++ Source or Header  |  2004-03-24  |  3KB  |  73 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP Version 4                                                        |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2003 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Author: Sterling Hughes <sterling@php.net>                           |
  16.    +----------------------------------------------------------------------+
  17.  */
  18.  
  19. #ifndef PHP_BZ2_H
  20. #define PHP_BZ2_H
  21.  
  22. #if HAVE_BZ2
  23.  
  24. extern zend_module_entry bz2_module_entry;
  25. #define phpext_bz2_ptr &bz2_module_entry
  26.  
  27. /* Bzip2 includes */
  28. #include <bzlib.h>
  29.  
  30. PHP_MINIT_FUNCTION(bz2);
  31. PHP_MSHUTDOWN_FUNCTION(bz2);
  32. PHP_MINFO_FUNCTION(bz2);
  33. PHP_FUNCTION(bzopen);
  34. PHP_FUNCTION(bzread);
  35. PHP_FUNCTION(bzerrno);
  36. PHP_FUNCTION(bzerrstr);
  37. PHP_FUNCTION(bzerror);
  38. PHP_FUNCTION(bzcompress);
  39. PHP_FUNCTION(bzdecompress);
  40.  
  41. #else
  42. #define phpext_bz2_ptr NULL
  43. #endif
  44.  
  45. #ifdef PHP_WIN32
  46. # ifdef PHP_BZ2_EXPORTS
  47. # define PHP_BZ2_API __declspec(dllexport)
  48. # else
  49. # define PHP_BZ2_API __declspec(dllimport)
  50. # endif
  51. #else
  52. # define PHP_BZ2_API
  53. #endif
  54.  
  55. PHP_BZ2_API PHPAPI php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
  56. PHP_BZ2_API PHPAPI php_stream *_php_stream_bz2open_from_BZFILE(BZFILE *bz, char *mode, php_stream *innerstream STREAMS_DC TSRMLS_DC);
  57.  
  58. #define php_stream_bz2open_from_BZFILE(bz, mode, innerstream)    _php_stream_bz2open_from_BZFILE((bz), (mode), (innerstream) STREAMS_CC TSRMLS_CC)
  59. #define php_stream_bz2open(wrapper, path, mode, options, opened_path)    _php_stream_bz2open((wrapper), (path), (mode), (options), (opened_path), NULL STREAMS_CC TSRMLS_CC)
  60.  
  61. php_stream_ops php_stream_bz2io_ops;
  62. #define PHP_STREAM_IS_BZIP2    &php_stream_bz2io_ops
  63.  
  64. #endif
  65.  
  66.  
  67. /*
  68.  * Local variables:
  69.  * tab-width: 4
  70.  * c-basic-offset: 4
  71.  * End:
  72.  */
  73.